<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			/*
			  对二进制位运算的符号
			  &(与) |(或) ~(取反) ^(异或) <<(左移) >>(右移) >>>(无符号右移)
			*/
			var a = 5;
			var b = 3;

			var c = 5 & 3;
			console.log(c);//1
			
			//左移几位就是乘2的几次方
			var d = a<<2;  //5 * 2**2
			console.log(d)//20
			d = a<<3;      //5 * 2**3
			console.log(d)//40
			
			
			//右移几位就是除2的几次方
			
		</script>
	</head>
	<body>
	</body>
</html>
